using System;
using NUnit.Framework;

namespace Org.JSON.Test.Serialization
{
	[TestFixture]
	public class Array
	{
		[Test]
		public void Empty()
		{
			Assert.AreEqual("[]", new Org.JSON.Array().Serialize());
		}

		[Test]
		public void OneValue()
		{
			Assert.AreEqual("[null]", new Org.JSON.Array().Add(new Org.JSON.Null()).Serialize());
		}

		[Test]
		public void ManyValues()
		{
			var array = new Org.JSON.Array();
			array.Add(new Org.JSON.Boolean(true));
			array.Add(new Org.JSON.Boolean(false));
			Assert.AreEqual("[true,false]", array.Serialize());
		}
	}
}

